
##remove the first 4 columns in the file

sed -r 's/^(\S+\s+){4}//' file

for f in $(find -name "*.java");do sed -i -e 's/fengchangjian/suxinmin/' $f;done


sed -i -e 's/\(GEMINI\ =\ \).*$/\1'yes'/' \
-e 's/\(MTK_GEMINI_ENHANCEMENT\ =\ \).*$/\1'yes'/' \
-e 's/\(MTK_SHARE_MODEM_SUPPORT\ =\ \).*$/\1'"2"'/' \
-e 's/\(MTK_SHARE_MODEM_CURRENT\ =\ \).*$/\1'"2"'/' \
-e 's/\(MTK_MD5_SUPPORT\ =\ \).*$/\1'"5"'/' \
-e 's/\(MTK_EXTMD_NATIVE_DOWNLOAD_SUPPORT\ =\ \).*$/\1'"no"'/' ProjectConfig.mk


sed -i -e 's/\(MTK_SECURITY\ =\ \).*$/\1'yes'/' -e 's/\(MTK_AC_SEC\ =\ \).*$/\1'yes'/' t.txt


-----------------------------------open_sec.sh-----------------------------------------
#!/bin/bash

# xinmin su 1/21/2015

#./open_sec.sh arima6752_lwt_s_l

PROJECT=$1

if [ -e bootable/bootloader/preloader/custom/${PROJECT}/${PROJECT}.mk ]; then
sed -i -e 's/\(MTK_SEC_CHIP_SUPPORT=\).*$/\1'yes'/' \
-e 's/ATTR_SUSBDL_ONLY_ENABLE_ON_SCHIP/ATTR_SUSBDL_ENABLE/' \
-e 's/ATTR_SBOOT_ONLY_ENABLE_ON_SCHIP/ATTR_SBOOT_ENABLE/' \
-e 's/\(MTK_SECURITY_SW_SUPPORT=\).*$/\1'yes'/' \
-e 's/\(MTK_SEC_SECRO_AC_SUPPORT=\).*$/\1'yes'/' \
-e 's/\(CUSTOM_SEC_AUTH_SUPPORT=\).*$/\1'no'/' bootable/bootloader/preloader/custom/${PROJECT}/${PROJECT}.mk
fi

if [ -e bootable/bootloader/lk/project/${PROJECT}.mk ]; then

sed -i -e 's/\(MTK_SECURITY_SW_SUPPORT=\).*$/\1'yes'/' \
-e 's/\(MTK_VERIFIED_BOOT_SUPPORT\ =\ \).*$/\1'yes'/' \
-e 's/\(MTK_SEC_FASTBOOT_UNLOCK_SUPPORT\ =\ \).*$/\1'yes'/' bootable/bootloader/lk/project/${PROJECT}.mk

fi

if [ -e device/arima/${PROJECT}/ProjectConfig.mk ]; then
sed -i -e 's/\(MTK_SECURITY_SW_SUPPORT=\).*$/\1'yes'/' \
-e 's/\(MTK_SEC_SECRO_AC_SUPPORT\ =\ \).*$/\1'yes'/' device/arima/${PROJECT}/ProjectConfig.mk

fi


sed -ie 's/2.1.0.[0-9]*/2.1.0.'"$VAR"'/' pom.xml

awk '/<version>.*<\/version>/{a++; if (2== a) gsub(/[0-9]*</version>/, "'"$VAR"'</version>", $0)}1' pom.xml


  awk '/<version>.*<\/version>/{a++; if (2== a) gsub(/[0-9]*<\/version>/, "'"$VAR"'</version>", $0)}1' pom.xml


awk '/<version>.*<\/version>/{a++; if (2== a) gsub(/[0-9]*<\/version>/, "'"$VAR"'</version>", $0)}1' pom.xml > pom0.xml && mv pom0.xml pom.xml